package com.xd.common.exception;

import lombok.Getter;

@Getter
public enum EErrorCode {

    LOSE_INFO_ERROR(411, "资质信息未填写"),

    /*基础 5xx*/
    OTHER(500, "内部错误"),
    TOKEN_OVERDUE(505, "TOKEN错误"),
    RPC_EXCEPTION(510, "RPC错误"),
    /*文件系统 2xxx*/
    RECOGNITION_FAIL(2001, "OCR错误"),
    PLACE_OTHER_LOGIN_FAIL(2002, "异地登陆");
    /*权限 3xxx*/
    /*工作流 4xxx*/
    /*追踪 5xxx*/
    private final int errorCode;
    private final String errorMsg;



    EErrorCode(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
